#ifndef __UI_H__
#define __UI_H__

#define WM_TRAY	(WM_USER+1)
#define MENU_START	12312
#define MENU_REGION	12400

class CUI
{
public:
	PCTSTR			_ClassName;
	HINSTANCE		_Instance;
	HWND			_hWnd;
	bool			_MenuLoop;
	class CMenu *	_Menu,
				*	_RegionMenu;
	NOTIFYICONDATA	_TrayIcon;

public:
	CUI();
	~CUI();

public:
	LRESULT OnMessage(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

public:
	VOID Tray_Init();
	VOID Tray_Show();
	VOID Tray_Hide();

public:
	VOID Menu_Init();
	VOID Menu_Handle(BOOL);
	VOID Menu_Track();

public:
	VOID Menu_0();
	VOID Menu_1();
	VOID Menu_2();
	VOID Menu_3();
	VOID Menu_4();
	VOID Menu_5();

public:
	BOOL CheckConfig();
	VOID CheckPath();
	PWSTR GetPath(PWSTR, PWSTR);
};

#endif
